#!/bin/bash
#chkconfig: 2345 80 90  
#﻿description: Scratch-Community
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
mount /dev/xvdb1 /opt
nohup /opt/workspace/mongodb-linux-x86_64-rhel70-4.4.4/bin/mongod --dbpath /opt/data/db &
cd /opt/workspace/scratch-community
nohup cd /opt/workspace/scratch-community && /opt/workspace/node-v14.17.6-linux-x64/bin/node bin/www > /opt/scratch-community.log &
